package top.xwang.firstspringboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import top.xwang.firstspringboot.entity.User2;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User2> {
//   @Insert("insert into user values(#{id},#{username},#{password},#{birthday})")
//   int addUser(User2 user2);
//   @Update("update user set username=#{username}, password=#{password}, birthday=#{birthday} where id=#{id}")
//   int updateUser(User2 user2);
//   @Delete("delete from user where id=#{id}")
//   int deleteUser(Integer id);
//   @Select("select * from user where id=#{id}")
//   User2 getUserById(Integer id);
//   @Select("select * from user")
//   List<User2> getUserAll();

}
